package cn.tedu.eguser.pojo.dto;

import jakarta.validation.constraints.Pattern;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import java.util.Date;

@Data
@Validated
public class User {
    @Pattern(regexp = "^[a-zA-Z0-9_]{6,12}$", message = "用户名必须为6-12位的字母、数字或下划线")
    private String username;
    private String password;
    private String nickname;
    private Date createTime;


}
